import React, {Component} from 'react';
import img from '../../../assets/logo512.png'



class YouJi extends Component {

  state = {
    imgList: [
      {
        title: '图片1',
        imgSrc:'/logo512.png'
      },
      {
        title: '图片2',
        imgSrc:'/logo512.png'
      },

    ]
  };
  render() {
    return (
      <div>
        <h1>游记</h1>
        {/*<img src='/logo512.png' alt=""/>*/}
        {/*<img src={img} alt=""/>*/}

        {this.state.imgList.map(item=>{
          return (<div>
            <h2>{item.title}</h2>
            <img src={item.imgSrc} alt=""/>
          </div>);
        })}

      </div>
    );
  }
}

export default YouJi;
